import request from '@/utils/request.js'

// 封装一个接收评论接口
export const cmtList = (params) => {
  return request({
    url: '/v1_0/comments',
    params
  })
}

// 封装一个发表评论/回复的接口
export const sendCmt = (data) => {
  return request({
    url: '/v1_0/comments',
    method: 'post',
    data
  })
}
